package com.enjoyor.soa.traffic.rest.efoms.dubbo.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.dto.efoms.CheckRecodeInfoDto;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboCheckRecordInfoService;
import com.enjoyor.soa.traffic.api.uums.dto.UserDto;
import com.enjoyor.soa.traffic.rest.efoms.dubbo.ICheckRecordInfoConsumeService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class CheckRecordInfoConsumeService implements ICheckRecordInfoConsumeService{

	@Reference(version = "1.0.0", timeout = 10000)
	private IDubboCheckRecordInfoService dubboCheckRecordInfoService;
	@Override
	public ResultPojo getCheckRecordInfo(String CheckRecordInfoId) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboCheckRecordInfoService.getCheckRecordInfo(CheckRecordInfoId);
		return resultPojo;
	}

	@Override
	public ResultPojo getCheckRecodeInfoList(String CheckRecordInfoId,String devId,String checkPersonCode,String startTime,String endTime,String devAreaCode,String devAreaName,String checkPersonName,String devCategoryCode,String devTypeCode,String checkResultCode) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboCheckRecordInfoService.getCheckRecodeInfoList(CheckRecordInfoId,devId,checkPersonCode,startTime,endTime,devAreaCode,devAreaName,checkPersonName,devCategoryCode,devTypeCode,checkResultCode);
		return resultPojo;
	}

	@Override
	public ResultPojo getCheckRecordInfoPage(String CheckRecordInfoId,String devId,String checkPersonCode,String startTime,String endTime,String devAreaCode,String devAreaName,String checkPersonName,String devCategoryCode,String devTypeCode,String checkResultCode,String devName,Page page) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboCheckRecordInfoService.getCheckRecordInfoPage(CheckRecordInfoId,devId,checkPersonCode,startTime,endTime,devAreaCode,devAreaName,checkPersonName,devCategoryCode,devTypeCode,checkResultCode,devName,page);
		return resultPojo;
	}

	@Override
	public ResultPojo insertCheckRecordInfo(String list,UserDto userDto) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboCheckRecordInfoService.insertCheckRecordInfo(list, userDto);
		return resultPojo;
	}

	@Override
	public ResultPojo updateCheckRecordInfo(CheckRecodeInfoDto checkRecodeInfoDto, String userName) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboCheckRecordInfoService.updateCheckRecordInfo(checkRecodeInfoDto, userName);
		return resultPojo;
	}

	@Override
	public ResultPojo delCheckRecordInfo(String CheckRecordInfoId, String userName) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = dubboCheckRecordInfoService.delCheckRecordInfo(CheckRecordInfoId, userName);
		return resultPojo;
	}

}
